<?php
namespace app\base\controller;
use think\Controller;
use think\Db;
use think\Session;

class City extends Controller
{

    /**
     * 根据ID获取下级城市
     * @return mixed
     */
    public function getCityById()
    {
        $id = $this->request->get('id');
        $data = Db::table('city')->where('parent_id',$id)->select();
        return json($data);
    }



}